package com.batsoft.trade.core;

import com.batsoft.trade.util.FastSerialize;
import com.batsoft.trade.util.JedisUtil;
import com.batsoft.trade.util.KryoSerialize;
import com.batsoft.trade.util.TradeSerialize;

/**
 * @author <a href="mailto:hellohesir@gmail.com">Mr_He</a>
 * 2019/10/26 22:07
 */
public class BuilderFastTrade {

    public static MatchOrder build() {
        TradeSerialize serialize = new FastSerialize();
//        TradeSerialize serialize = new KryoSerialize();
        JedisUtil jedisUtil = new JedisUtil(serialize);
        return new MatchOrder(jedisUtil, serialize);
    }

}
